import sys
from getpath import getpath
initpath=getpath()
print(initpath)
sys.path.insert(0,initpath+r"\scripts")
sys.path.insert(0,initpath+r"\Lib")
print(sys.path)
from main2 import main
import logging
from logging.handlers import RotatingFileHandler
handlers=[RotatingFileHandler(filename="report.log", maxBytes=10*1024*1024, encoding='utf-8',backupCount=3),logging.StreamHandler(sys.stdout)]
logging.basicConfig(level=logging.DEBUG,
                    format = '%(asctime)s - %(name)s - %(levelname)s -%(funcName)s - %(message)s',
                    handlers=handlers)
logging.info('begin')
main()